package cn.trda.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

//easyui-treegrid插件数据属性要求：_parentId,children,type
public class FunctionExt extends Function implements Serializable{
	private Long _parentId; //
	private String checked="unchecked"; //这里的意思是默认不选中
	private List<FunctionExt> children=new ArrayList<FunctionExt>();
	private String type = "folder";
	public List<FunctionExt> getChildren() {
		return children;
	}
	public void setChildren(List<FunctionExt> children) {
		this.children = children;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getChecked() {
		return checked;
	}
	public void setChecked(String checked) {
		this.checked = checked;
	}
	public Integer get_parentId() {
		//当这条记录是根节点的时候，它的_parentId的值是null
		return this.getParentid()==0L?null:this.getParentid();
	}
	public void set_parentId(Long _parentId) {
		this._parentId = _parentId;
	}
}
